package persistence;

import core.exception.SaveException;

/**
 * Data access object for changing relationship between products
 * and containers
 * @author Sabrina
 *
 */
public interface ProductContainerDAO 
{
	/**
	 * Add a product to a container in the data persistence
	 * @param product the product DTO
	 * @param container the container DTO
	 * @throws Exception thrown if cannot add product to container for some reason
	 */
	abstract void addRelationship(ProductDTO product, ContainerDTO container) throws SaveException;
	
	/**
	 * Remove a product from a container in the data persistence
	 * @param product the product DTO
	 * @param container the container DTO
	 * @throws Exception thrown if cannot remove product from container for some reason
	 */
	abstract void removeRelationship(ProductDTO product, ContainerDTO container) 
			throws SaveException;
}
